package com.sxjh.entity.param;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 财务报表通用检索对象
 */
@Data
public class yueParam {
  @ApiModelProperty("月末开始时间")
  @DateTimeFormat(fallbackPatterns = {"yyyy-MM-dd+HH:mm:ss", "yyyy-MM-dd HH:mm:ss"})
  private LocalDateTime startMonthDate;
  @ApiModelProperty("月末结束时间")
  @DateTimeFormat(fallbackPatterns = {"yyyy-MM-dd+HH:mm:ss", "yyyy-MM-dd HH:mm:ss"})
  private LocalDateTime endMonthDate;
  @ApiModelProperty("结算月")
  private String settlementMonth;
  @ApiModelProperty("结算月1")
  private String settlementMonth1;
  @ApiModelProperty("结算开始时间")
  @DateTimeFormat(fallbackPatterns = {"yyyy-MM-dd+HH:mm:ss", "yyyy-MM-dd HH:mm:ss"})
  private LocalDateTime startSettlementDate;
  @ApiModelProperty("结算结束时间")
  @DateTimeFormat(fallbackPatterns = {"yyyy-MM-dd+HH:mm:ss", "yyyy-MM-dd HH:mm:ss"})
  private LocalDateTime endSettlementDate;

  @ApiModelProperty("开始时间")
  @NotNull(message = "开始时间不能为空")
  @DateTimeFormat(fallbackPatterns = {"yyyy-MM-dd+HH:mm:ss", "yyyy-MM-dd HH:mm:ss"})
  private LocalDateTime tb1startDate;

  @ApiModelProperty("结束时间")
//  @NotNull(message = "结束时间")
//  @DateTimeFormat(fallbackPatterns = {"yyyy-MM-dd+HH:mm:ss", "yyyy-MM-dd HH:mm:ss"})
  private String tb1endDate;
  @ApiModelProperty("开始时间")
  @NotNull(message = "开始时间不能为空")
  @DateTimeFormat(fallbackPatterns = {"yyyy-MM-dd+HH:mm:ss", "yyyy-MM-dd HH:mm:ss"})
  private LocalDateTime tb2startDate;

  @ApiModelProperty("结束时间")
  @NotNull(message = "结束时间")
  @DateTimeFormat(fallbackPatterns = {"yyyy-MM-dd+HH:mm:ss", "yyyy-MM-dd HH:mm:ss"})
  private LocalDateTime tb2endDate;

  @ApiModelProperty("客户ID")
  private Integer customerUserId;

  @ApiModelProperty(value = "物料ID", hidden = true)
  private Integer materialId;

  @ApiModelProperty(value = "物料大类ID", hidden = true)
  private Integer categoryId;
  @ApiModelProperty(value = "余额日期", hidden = true)
  private String balanceDate;


}
